//
//  UserDTO.m
//  KutulusLaw
//
//  Created by phuc phuc on 12/12/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "UserDTO.h"

@implementation UserDTO
@synthesize _id,_userID,address,fax,city,tel1,tel2,email,skype,country,website,lastname,postcode,firstname,tax_number,tax_office,tc_identity,company_name;

-(id)initProfile : (NSDictionary*) _dictionary
{
	self = [super init];
	if (self) {
		self._id = [[_dictionary objectForKey:@"id"] intValue];
		self._userID = [[_dictionary objectForKey:@"user_id"] intValue];
		self.address = [_dictionary objectForKey:@"address"];
		self.fax = [_dictionary objectForKey:@"fax"];
		self.city = [_dictionary objectForKey:@"city"];
		self.tel1 = [_dictionary objectForKey:@"tel1"];
		self.tel2 = [_dictionary objectForKey:@"tel2"];
		self.email = [_dictionary objectForKey:@"email"];
		self.skype = [_dictionary objectForKey:@"skype"];
		self.country = [_dictionary objectForKey:@"country"];
		self.website = [_dictionary objectForKey:@"website"];
		self.lastname = [_dictionary objectForKey:@"lastname"];
		self.postcode = [_dictionary objectForKey:@"postcode"];
		self.firstname = [_dictionary objectForKey:@"firstname"];
		self.tax_number = [_dictionary objectForKey:@"tax_number"];
		self.tax_office = [_dictionary objectForKey:@"tax_office"];
		self.tc_identity = [_dictionary objectForKey:@"tc_identity"];
		self.company_name = [_dictionary objectForKey:@"company_name"];
		
	}
	return self;
}

@end
